package com.xcc.shopanim.mode;

import android.text.TextUtils;

/**
 * <pre>
 * ****************************************************
 * 作者 :: rookieCi<1056907550@qq.com>
 * ----------------------------------------------------
 * git :: https://gitee.com/rookieci
 * ----------------------------------------------------
 * 博客 :: http://blog.csdn.net/xcccicishuai
 * ----------------------------------------------------
 * 时间 :: 2019/9/28 Add by rookieCi
 * ----------------------------------------------------
 * 描述 :: NewMainVideoMode
 * ****************************************************</pre>
 */
public class NewMainVideoMode {
    /**
     * contentId (string, optional): 直播或者短视频或者爬虫短视频id ,
     * contentType (integer, optional): 1:直播 2:切片视频 3:爬取视频 -1:整场回放 -2:预告 -3BannerMode
     * contentType (integer, optional):1:直播 2:切片视频 3:爬取视频 4 ios代表回放，5 代表预告
     */
    public String contentId;
    public int contentType;
    public transient BannerMode bannerMode;

    public NewMainVideoMode() {
    }

    public NewMainVideoMode(String contentId, int contentType) {
        this.contentId = contentId;
        this.contentType = contentType;
    }

    public String getId() {
        return contentId;
    }

    public NewMainVideoMode setBannerMode(BannerMode bannerMode) {
        this.bannerMode = bannerMode;
        return this;
    }

    public boolean equals(NewMainVideoMode videoMode) {
        if (videoMode == null) return false;
        if (contentType != videoMode.contentType) return false;
        if (TextUtils.isEmpty(contentId)) return false;
        return contentId.equals(videoMode.contentId);
    }
}
